package jnpf.scheduletask;


import jnpf.scheduletask.fallback.ScheduletaskApiFallback;
import jnpf.scheduletask.model.TaskCrForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "jnpf-scheduletask" , fallback = ScheduletaskApiFallback.class)
public interface ScheduletaskApi {

    @PostMapping("/schedule")
    void schedule(@RequestBody TaskCrForm taskCrForm);

}
